<%@ page language="java" pageEncoding="UTF-8"%>
<%@page import="com.shsh.safemanage.model.PostCheck"%>
<%@page import="com.shsh.safemanage.dao.PostCheckDao"%>
<%@page import="com.shsh.safemanage.util.Util"%>
<%@page import="com.shsh.safemanage.model.Department1"%>
<%@page import="java.util.List"%>
<%@page import="com.shsh.safemanage.dao.DepartmentDao"%>
<%@page import="com.shsh.safemanage.dao.DaoCreator"%>
<%@page import="com.shsh.safemanage.util.Constants"%>

<%
PostCheckDao postCheckDao = DaoCreator.createPostCheckDao();
List<PostCheck> postCheckList = postCheckDao.getPostCheckList();
%>
<%
if (postCheckList.size() > 0) {
%>
<table width="400" border="1" cellpadding="0"
		cellspacing="0">
	<%
	for (int i = 0; i < 100; i++) {
	%>
	<tr>
		<%
		for (int j = 0; j < 3; j++) {
			int index = i * 3 + j;
			if (index >= postCheckList.size()) {
				break;
			}
			PostCheck postCheck = postCheckList.get(index);
		%>
		<td align="center"><a href="#" onclick="chooseMappingPostcheck(<%=postCheck.getId()%>)"><%=postCheck.getCheckName()%></a></td>
		<%
		}
		%>
	</tr>
	<%
	}
	%>
</table>
<%
}
%>
